package com.example.spzx.Mapper;

import com.example.spzx.model.entity.product.Brand;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BrandMapper {
    Page<Brand> getlist();

    void save(Brand brand);

    void update(Brand brand);

    void delete(Integer id);
@Select("select * from brand")
List<Brand> getall();

    List<Brand> getbyid(Integer id);
@Select("select name from brand where id= #{toIntExact}")
    String getnamebyid(int toIntExact);
}
